package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.BomItem;
import com.nbsaas.boot.manufacturing.api.domain.response.BomItemResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* BOM项目-实体对象转化成响应对象
*/

public class BomItemResponseConvert  implements Converter<BomItemResponse,BomItem> {

    @Override
    public BomItemResponse convert(BomItem source) {
        BomItemResponse  result = new  BomItemResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

